/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.role.repository;

import com.lap.auth.domain.role.Role;
import java.util.List;
import java.util.Optional;
import java.util.Set;

/**
 * 角色仓储接口
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public interface RoleRepository {

  Integer save(Role role);

  int deleteById(Integer id);

  Optional<Role> findById(Integer id);

  boolean existsByCode(String code);

  List<Role> findByIds(Set<Integer> idSet);
}
